package com.moli.iov.protocol.enums.extend;

public enum ExtendLeasingModelTag {
	
	/**
	 * 拉起
	 */
	NO("非租赁", 0), 
	/**
	 * 未拉起
	 */
	YES("租赁", 1);

	private ExtendLeasingModelTag(String key, int value) {
		this.k = key;
		this.v = value;
	}

	private String k;

	private int v;

	public static ExtendLeasingModelTag valueOf(int value) {
		switch (value) {
		case 0:
			return NO;
		case 1:
			return YES;
		default:
			return null;
		}
	}

	public static String getKey(int value) {
		for (ExtendLeasingModelTag c : ExtendLeasingModelTag.values()) {
			if (c.getV() == value) {
				return c.k;
			}
		}
		return null;
	}

	public String getK() {
		return k;
	}

	public int getV() {
		return v;
	}
	
}